<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .box{
        position: relative;
        width: 500px;
        height: 300px;
        margin: 200px auto 80px;
        transition: all 1s ease;
        transform-style: preserve-3d;
    }
    .box div{
        position: absolute;
        top: 0;
        left: 0;
        width: 500px;
        height: 300px;
    }
    button{
        display: block;
        margin: 0 auto;
    }
    .rotate{
        transform: rotateX(-90deg);
        transition: all 1s ease;
        animation-fill-mode: both;
    }
</style>
<body>
    <div class="box">
        <div style="background-color: skyblue;transform: translateZ(150px);"></div>
        <div style="background-color: wheat;transform: rotateX(90deg) translateZ(150px);"></div>
        <div style="background-color: yellowgreen;transform: rotateX(180deg) translateZ(150px);"></div>
        <div style="background-color: lightcoral;transform: rotateX(270deg) translateZ(150px);"></div>
    </div>
    <button type="button">下一页</button>
    
</body>
<script src="js/jquery-1.12.4.min.js"></script>
<script>
    const $box = $(".box");
    const $div = $("div");
    let deg = -90;
    $("button").click(function () {
        $("button").prop("disabled","disabled");
        setTimeout(function () {
            $("button").prop("disabled","");    
        },1000)
        $box.css({
            transform: "rotateX("+deg+"deg)",
        });
        deg -=90;
    })
</script>
</html>